﻿using Sidvall.WorkItemManager.Data;
using System.Threading.Tasks;

namespace Sidvall.WorkItemManager.Workflow
{
	public interface IRetryPolicyProvider
	{
		string Context { get; set; }

		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
		Task<System.DateTime?> GetNextRetryTimeAsync(IWorkItem item);
	}
}
